<% for (var i in arr) {%>

<% 
   var userName;
   switch(arr[i][5]) {
      case '.Inbox':
         userName = arr[i][11];
      break;
      case '.Sent':
      case '.Draft':
         userName = arr[i][8];
      break;
      default:
         userName = arr[i][11];
   }
%>

<% var userInfo = _.find(user,function(val,key){return userName && key == userName.toLowerCase()}); userInfo = userInfo ? userInfo : {};%>


<li>
    <label uid="<%=userInfo.usr_id%>" username="<%=userName%>">
      <% if (parseInt(userInfo.numberofpictures) > 0 && parseInt(userInfo.profile_hidden) != 1) { %>
          <img class="imglazyload"  src = "" url="<%=userInfo.icon%>" />
      <% } else { %>
          <% if (parseInt(userInfo.gender) == 1) {%> 
               <img class="imglazyload"  src = "" url="<%=defaultImg%>icon_male.png" />
          <% } else if (parseInt(userInfo.gender) == 2) {%>
               <img class="imglazyload"  src = "" url="<%=defaultImg%>icon_remale.png" />
          <% } else {%>
               <img class="imglazyload"  src = "" url="<%=defaultImg%>icon_married.png" />
          <% } %>
      <% } %>
    </label>
    <div class="info" eid=<%=arr[i][2]%> username="<%=userName%>">
       <div class="name">
          <% if(arr[i][14] !== '1') { %>
          <span class='read_icon'></span>
          <% } %>
          <span class="hyperlink"><%=userName%></span>
          <% if(userInfo.membership == 'M') {%>
             <span class="gold"></span>
          <% } %>
          <span class='email_time'><%=util.getMonthDayDate(arr[i][13])%></span>
       </div>
       <div class="words">
            <%=arr[i][12]%>&nbsp;
       </div>
    </div>
</li>
<% }%>
